package org.guoqiang.datasource.handler.repository;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CREATE TABLE `player` (
 * `id` int(255) NOT NULL AUTO_INCREMENT COMMENT '主键',
 * `en_name` varchar(255) DEFAULT NULL COMMENT '英文名',
 * `cn_name` varchar(255) DEFAULT NULL COMMENT '中文名',
 * `country_en` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '国籍英文',
 * `country_cn` varchar(255) DEFAULT NULL COMMENT '国籍中文',
 * `join_nba_year` varchar(255) DEFAULT NULL COMMENT '加入nba年份',
 * `experience_years` varchar(255) DEFAULT NULL COMMENT '至今职业生涯几年',
 * `height` varchar(255) DEFAULT NULL COMMENT '身高',
 * `jersey_no` varchar(255) DEFAULT NULL COMMENT '球衣号码',
 * `position` varchar(255) DEFAULT NULL COMMENT '司职位置',
 * `school_type` varchar(255) DEFAULT NULL COMMENT '毕业学校类型',
 * `weight` varchar(255) DEFAULT NULL COMMENT '体重',
 * PRIMARY KEY (`id`)
 * ) ENGINE=InnoDB AUTO_INCREMENT=820 DEFAULT CHARSET=utf8;
 */

@Table(name = "player")
@Entity
public class Player {


    @Id
    private String id;
    private String en_name;
    private String cn_name;
    private String country_en;
    private String country_cn;
    private String join_nba_year;
    private String experience_years;
    private String height;
    private String jersey_no;
    private String position;
    private String school_type;
    private String weight;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEn_name() {
        return en_name;
    }

    public void setEn_name(String en_name) {
        this.en_name = en_name;
    }

    public String getCn_name() {
        return cn_name;
    }

    public void setCn_name(String cn_name) {
        this.cn_name = cn_name;
    }

    public String getCountry_en() {
        return country_en;
    }

    public void setCountry_en(String country_en) {
        this.country_en = country_en;
    }

    public String getCountry_cn() {
        return country_cn;
    }

    public void setCountry_cn(String country_cn) {
        this.country_cn = country_cn;
    }

    public String getJoin_nba_year() {
        return join_nba_year;
    }

    public void setJoin_nba_year(String join_nba_year) {
        this.join_nba_year = join_nba_year;
    }

    public String getExperience_years() {
        return experience_years;
    }

    public void setExperience_years(String experience_years) {
        this.experience_years = experience_years;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getJersey_no() {
        return jersey_no;
    }

    public void setJersey_no(String jersey_no) {
        this.jersey_no = jersey_no;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getSchool_type() {
        return school_type;
    }

    public void setSchool_type(String school_type) {
        this.school_type = school_type;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "Player{" +
                "id='" + id + '\'' +
                ", en_name='" + en_name + '\'' +
                ", cn_name='" + cn_name + '\'' +
                ", country_en='" + country_en + '\'' +
                ", country_cn='" + country_cn + '\'' +
                ", join_nba_year='" + join_nba_year + '\'' +
                ", experience_years='" + experience_years + '\'' +
                ", height='" + height + '\'' +
                ", jersey_no='" + jersey_no + '\'' +
                ", position='" + position + '\'' +
                ", school_type='" + school_type + '\'' +
                ", weight='" + weight + '\'' +
                '}';
    }
}
